package com.bocai.grainshop.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bocai.common.to.mq.SeckillOrderTo;
import com.bocai.common.utils.PageUtils;
import com.bocai.grainshop.order.entity.OrderEntity;
import com.bocai.grainshop.order.vo.OrderConfirmVo;
import com.bocai.grainshop.order.vo.OrderSubmitVo;
import com.bocai.grainshop.order.vo.PayVo;
import com.bocai.grainshop.order.vo.SubmitOrderResponseVo;

import java.util.List;
import java.util.Map;

/**
 * 订单
 *
 * @author SunJinBo
 * @email 2374461077@qq.com
 * @date 2022-03-01 20:25:58
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo OrderConfirm();


    SubmitOrderResponseVo createOrder(OrderSubmitVo orderSubmitVo);

    Integer getInfoByOrderSn(String orderSn);

    void OrderClose(OrderEntity order);

    PayVo getOrderPay(String orderSn);

    PageUtils queryWithItem(Map<String, Object> params);

    void createSeckillOrder(SeckillOrderTo to);

    List<Long> getFinshOrderSkuArray();

    PageUtils queryWith(Map<String, Object> map);
}

